package ast;

import src.NFA;

public class OneOrMoreNode extends ASTNode {

	public OneOrMoreNode(ASTNode node) {
		super();
		this.leftChild = node;
		this.value = node.getValue() + "+";
	}
	
	
	@Override
	public NFA generateNFA() {
		return NFA.plus(this.leftChild.generateNFA());
	}

}
